{extend name='admin@public/content'}


{block name="button"}
<!--{if auth("$classuri/upload")}-->
<button data-modal='{:url("$classuri/upload")}' data-title="添加学生卡" class='layui-btn layui-btn-sm layui-btn-primary'>批量上传学生卡</button>
<!--{/if}-->

<!--{if auth("$classuri/add")}-->
<button data-modal='{:url("$classuri/add")}' data-title="添加学生卡" class='layui-btn layui-btn-sm layui-btn-primary'>添加添加学生卡</button>
<!--{/if}-->
{/block}

{block name="content"}

<!-- 表单搜索 开始 -->
<form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">卡号</label>
        <div class="layui-input-inline">
            <input name="cart_no" id="cart_no" value="{$Think.get.cart_no|default=''}" placeholder="请输入要搜索的卡号" class="layui-input">
        </div>
    </div>



    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>

</form>

<!-- 表单搜索 结束 -->



<!--{empty name='list'}-->
<p class="help-block text-center well">没 有 记 录 哦！</p>
<!--{else}-->
<input type="hidden" value="resort" name="action">
<table class="layui-table" lay-skin="line">
    <thead>
    <tr>
        <th class='text-left nowrap'>卡号</th>
        <th class='text-left nowrap'>创建时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <!--{foreach $list as $key=>$vo}-->
    <tr>
        <td class='text-left nowrap'>
            {$vo.cart_no}
        </td>
        <td class='text-left nowrap'>
            {$vo.create_time|time_date}
        </td>
        <td class='text-left nowrap'>

            {if auth("$classuri/edit")}
            <span class="text-explode">|</span>
            <a data-title="编辑" data-modal='{:url("$classuri/edit")}?id={$vo.id}'>编辑</a>
            {/if}

            {if auth("$classuri/del")}
            <span class="text-explode">|</span>
            <a data-title="删除" data-update="{$vo.id}"   data-field='delete' data-action='{:url("$classuri/del")}?id={$vo.id}'>删除</a>
            {/if}


        </td>
    </tr>
    <!--{/foreach}-->
    </tbody>
</table>
{if isset($page)}<p>{$page|raw}</p>{/if}
<!--{/empty}-->


{/block}